package com.lemontree.spring4.day02;

import org.aspectj.lang.annotation.*;

@Aspect
public class Audience {

    // perform 本身并不重要，它只是一个标识
    @Pointcut("execution(* com.lemontree.spring4.day02.Performance.perform(..))")
    public void perform(){}

    @Before("perform()")
    public void silence(){
        System.out.println("phone silence...");
    }
    @Before("perform()")
    public void taslSeats(){
        System.out.println("task seats.");
    }

    @AfterReturning("perform()")
    public void applause(){
        System.out.println("Clap...");
    }

    @AfterThrowing("perform()")
    public void demendRefund(){
        System.out.println("demend refund");
    }


}
